const xian = {
    dataType: '',
};

export enum DataType {
    xian = '1',
    yinChuan = '2',
}

export enum ThemeType {
    dark = 'dark',
    light = 'light',
}

export enum SexType {
    male = '2', //男
    female = '1', //女
    all = '0', //全部
}

export const sexTypeList = [
    {
        label: '男',
        value: SexType.male,
    },
    {
        label: '女',
        value: SexType.female,
    },
    {
        label: '全部',
        value: SexType.all,
    },
];

export interface Settings {
    dataType: string;
    orgCode?: string;
}

export function getSettings(type: string) {
    if (type == DataType.xian) {
        return { dataType: '1', orgCode: '' } as Settings;
    }
    if (type == DataType.yinChuan) {
        return { dataType: '2', orgCode: 'A01A59' } as Settings;
    }
}
